package com.wulis.common.constant;

/**
 * @author WuliBao
 */
public interface GlobalConstant {
    /**
     * 团队
     */
    String AUTHOR = "Wulis";
    
    /**
     * Bearer prefix
     */
    String BEARER = "Bearer ";
    
    /**
     * Basic prefix
     */
    String BASIC = "Basic ";
    
    /**
     * swagger prefix
     */
    String SWAGGER_PREFIX = "swagger";
    
    /**
     * swagger url
     */
    String SWAGGER_URL = "/doc.html";
    
    /**
     * UTF-8字符集
     */
    String UTF_8 = "UTF-8";
    
    /**
     * Redis中存用户的token prefix
     */
    String TOKEN_PREFIX = "token:";
    
    /**
     * token有效时间（单位：小时）
     */
    Integer TOKEN_EXPIRATION = 10000;
    
    /**
     * Redis中存的角色按钮权限键
     */
    String ROLE_MENU_BUTTON = "role_menu_button";
    
    /**
     * Redis中存验证码前缀
     */
    String VERIFICATION_CODE_PREFIX = "verification_code:";
    
    /**
     * 超级管理员账号ID
     */
    Long ADMINISTRATOR = 0L;


    /**
     * 响应内容类型 .xls
     */
    String RESPONSE_CONTENT_TYPE_XLS = "application/vnd.ms-excel;charset:utf-8";

    /**
     * 响应内容类型 .xlsx
     */
    String RESPONSE_CONTENT_TYPE_XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset:utf-8";

    /**
     * 响应字符编码
     */
    String RESPONSE_CHARACTER_ENCODING_UTF8 = "charset:utf-8";
    /**
     * 响应头名称
     */
    String RESPONSE_HEADER_NAME = "Content-Disposition";
    /**
     * 响应头值
     */
    String RESPONSE_HEADER_VALUE = "attachment; filename=";
    /**
     * 用户代理
     */
    String USER_AGENT = "User-Agent";
    /**
     * Internet Explorer
     */
    String MSIE = "MSIE";
    /**
     * Microsoft Edge
     */
    String TRIDENT = "Trident";
    /**
     * Microsoft Edge
     */
    String EDGE = "Edge";
    
}
